{% extends "automan/template.html" %}
{% load staticfiles %}
{% block title %} {{ current_page_name }}{% endblock %}

{% block content %}
<table class="table table-border table-bordered table-bg">
    <thead>
        <tr>
            <th scope="col" colspan="7">PRD环境发布图表</th>
        </tr>
    </thead>
    <tbody>
        <tr class="text-c">
            <td>
                <div id="main_prd" style="height: 200px;"></div>
            </td>
        </tr>
    </tbody>
</table>
<br/>

<table class="table table-border table-bordered table-bg">
    <thead>
        <tr>
            <th scope="col" colspan="7">TEST环境发布图表</th>
        </tr>
    </thead>
    <tbody>
        <tr class="text-c">
            <td>
                <div id="main_test" style="height: 200px;"></div>
            </td>
        </tr>
    </tbody>
</table>
<br/>
{% endblock %}

{% block ext-js %}
<script type="text/javascript" src="{% static 'lib/echarts/3.4.0/echarts.common.min.js' %}"></script>
<script type="text/javascript">
{% include "deploy/report.js" %}

$(document).ready(function () {
    // 指定PRD环境获取发布单数据
    getDeployCount("PRD", "main_prd");

    // 指定PRD环境获取发布单数据
    getDeployCount("TEST", "main_test");
});
</script>
{% endblock %}